<template>
	
	<view class="my" style="background-color: #e4ecf7;min-height: 100vh;">
		<view class="user-header-box">
			<view class="avatar-box">
				<!-- 点击头像进入个人信息修改页面 -->
				<button @click="goDetail">
				<image class="img" src="../../static/img/avatar.jpg" mode=""></image>
				</button>
			</view>
			<view class="user-info">
				<view class="name">
					张三
				</view>
				<view class="uid">
					ID:152 8888 8888
				</view>
			</view>
		</view>
		<view class="user-amount-box">
			<view class="user-level">
				<image class="icon" src="../../static/img/na.svg"></image>
				<view class="level-desc-box">
					<view class="title">
						申请会员权益
					</view>
					<view class="desc">
						加入会员享受更多特权
					</view>
				</view>
				<image class="right-icon" src="../../static/img/right-icon.svg" mode=""></image>
			</view>
			<view class="amount-box">
				<view class="amount">
					2360.00 <text style="font-size: 26rpx;">元</text>
				</view>
				<view class="now-with">
					立即提现
				</view>
			</view>
		</view>
		<view class="user-tab-box">
			<view class="tab-title">
				常用服务
			</view>
			<view class="tab-list-box">
				<view class="list-item">
					<image class="icon" src="../../static/img/purse.svg" mode=""></image>
					<view class="text">我的钱包</view>
				</view>
				<view class="list-item">
					<image class="icon" src="../../static/img/GVRP.svg" mode=""></image>
					<view class="text">注册协议</view>
				</view>
				<view class="list-item">
					<image class="icon" src="../../static/img/profile.svg" mode=""></image>
					<view class="text">我的资料</view>
				</view>
				<view class="list-item">
					<image class="icon" src="../../static/img/questions.svg" mode=""></image>
					<view class="text">常见问题</view>
				</view>
				<view class="list-item">
					<image class="icon" src="../../static/img/my customer service.svg" mode=""></image>
					<view class="text">我的客服</view>
				</view>
				<view class="list-item">
					<image class="icon" src="../../static/img/limits.svg" mode=""></image>
					<view class="text">激活权限</view>
				</view>
				<view class="list-item">
					<image class="icon" src="../../static/img/about us.svg" mode=""></image>
					<view class="text">关于我们</view>
				</view>
				<view class="list-item">
					<image class="icon" src="../../static/img/My Settings.svg" mode=""></image>
					<view class="text">我的设置</view>
				</view>
			</view>
		</view>
		<view class="loan-box">
			<view class="loan-title-box">
				<view class="title">
					热门活动
				</view>
				<view class="link">
					查看更多
				</view>
			</view>
			<view class="loan-list">
				<view class="list-item">
					<view class="item-head">
						<image class="pic" src="../../static/img/Campaign.svg" mode=""></image>
						<view class="loan-info">
							<view class="name">
								活动名称
							</view>
							<view class="date">
								活动详情
							</view>
						</view>
						<view class="join-btn">
							立即报名
						</view>
					</view>
				</view>
			</view>
		</view>
		<view class="foot-line">
			<view class="line"></view>
			<text style="margin: 0 20rpx;font-size: 12rpx;">我也是有底线的</text>
			<view class="line"></view>
		</view>
	</view>	
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onLoad() {

		},
		methods: {
			goDetail(){
				uni.navigateTo({
					url:'/pages/detail/detail'
			});
			
				
			}

		}
	}
</script>

<style lang="scss" scoped>
.user-header-box{
	height: 340rpx;
	width: 100%;
	//设置背景图片
	background-image: url(../../static/img/bj.jpg);
	background-size: 100% 100%;
	display: flex;
	align-items: center;
	justify-content: left;

.avatar-box{
			margin-left: 80rpx;
			.img{
				height: 120rpx;
				width: 120rpx;
			}
		}
		.user-info{
			color: #fff;
			margin-left: 20rpx;
			.name{
				
			}
			.uid{
				
			}
		}
	}
	.user-amount-box{
		width: 90%;
		margin: -90rpx auto 0 auto;
		.user-level{
			border-radius: 10rpx 10rpx 0 0;
			background-color: #e2eefe;
			padding: 10rpx 14rpx;
			display: flex;
			align-items: center;
			.icon{
				height: 60rpx;
				width: 60rpx;
			}
			.level-desc-box{
				margin-left: 20rpx;
				.title{
					font-size: 28rpx;
				}
				.desc{
					font-size: 20rpx;
					color: #808080;
				}
			}
			.right-icon{
				height: 26rpx;
				width: 26rpx;
				margin-left: auto;
				padding-right: 10rpx;
			}
		}
		.amount-box{
			display: flex;
			align-items: center;
			justify-content: space-between;
			background-color: #fff;
			border-radius: 0 0 10rpx 10rpx;
			padding: 40rpx 60rpx;
			.amount{
				font-size: 46rpx;
			}
			.now-with{
				background-color: #ffa415;
				color: #fff;
				padding: 8rpx 30rpx;
				border-radius: 5rpx;
			}
		}
	}
	.user-tab-box{
		background-color: #fff;
		width: 90%;
		margin: 20rpx auto;
		border-radius: 10rpx;
		padding: 10rpx 20rpx;
		padding-bottom: 20rpx;
		box-sizing: border-box;
		.tab-title{
			font-size: 30rpx;
		}
		.tab-list-box{
			margin-top: 20rpx;
			display: flex;
			flex-wrap: wrap;
			.list-item{
				width: 25%;
				text-align: center;
				margin: 16rpx 0;
				.icon{
					height: 80rpx;
					width: 80rpx;
				}
				.text{
					color: #666666;
					margin-top: -10rpx;
					font-size: 26rpx;
				}
			}
		}
	}
	.loan-box{
		background-color: #fff;
		width: 90%;
		margin: 20rpx auto;
		border-radius: 10rpx;
		padding: 10rpx 20rpx;
		padding-bottom: 20rpx;
		box-sizing: border-box;
		.loan-title-box{
			display: flex;
			align-items: center;
			padding-top: 6rpx;
			.title{
				font-size: 30rpx;
			}
			.link{
				margin-left: auto;
				color: #797979;
				font-size: 20rpx;
			}
		}
.loan-list{
	margin-top: 30rpx;
		.list-item{
			padding: 0 10rpx;
			border-bottom: 1px solid #e9e9e9;
			margin-top: 20rpx;
			.item-head{
				display: flex;
				align-items: center;
					.pic{
						height: 100rpx;
						width: 100rpx;
					    }
					.loan-info{
						margin-left: 20rpx;
						.name{
							color: #797979;
							font-weight: 600;
						     }
						.date{
							color: #797979;
							margin-top: 6rpx;
						}
					}
					.join-btn{
						background-color: #2979ff;
						color: #fff;
						margin-left: auto;
						margin-right: 20rpx;
						padding: 6rpx 30rpx;
						border-radius: 30rpx;
						font-size: 28rpx;
					}
				}
				
			}
		}
	}
.foot-line{
	display: flex;
	align-items: center;
	justify-content: center;
	padding-bottom: 20rpx;
	color: #5f5f5f;
		.line{
			width: 200rpx;
			border-bottom: 1px solid #5f5f5f;
		}
}
</style>

